Carbon


MPSetEvent

Header: Multiprocessing.h Carbon status: Supported

Merges event flags into a specified event group.

OSStatus MPSetEvent (
    MPEventID event, 
    MPEventFlags flags
);
Parameter descriptions
event

The ID of the event group you want to set.

flags

The flags you want to merge into the event group.

function result

A result code.

DISCUSSION

The flags are logically ORed with the current flags in the event group. This procedure is an atomic operation to ensure that multiple updates do not get lost. If tasks are waiting on this event group, the first waiting task is unblocked.

Note that you can call this function from an interrupt handler.

Also see the function MPWaitForEvent.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)